/* MERARY Help / FAQ — editorial page skin */

body[data-page="help"] {
  overflow-x: clip;
}

body[data-page="help"] #headerAuthOverlay:not(.is-visible),
body[data-page="help"] #callbackModalOverlay:not(.is-visible),
body[data-page="help"] #promoModalOverlay:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.help-page {
  --help-bg: #fff8f9;
  --help-bg-soft: #fdf3f5;
  --help-card: rgba(255, 255, 255, 0.88);
  --help-border: rgba(229, 165, 176, 0.22);
  --help-text: #4a3538;
  --help-muted: rgba(74, 53, 56, 0.68);
  --help-accent: #d9829b;
  --help-accent-deep: #c86b86;
  --help-shadow: 0 18px 48px rgba(120, 74, 74, 0.06);
  background: var(--help-bg);
  color: var(--help-text);
  font-family: "Manrope", system-ui, sans-serif;
}

.help-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px);
}

.help-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 12% 0%, rgba(255, 220, 228, 0.55), transparent 58%),
    radial-gradient(ellipse 60% 50% at 88% 18%, rgba(255, 236, 240, 0.45), transparent 62%),
    linear-gradient(180deg, #fff5f7 0%, var(--help-bg) 100%);
  pointer-events: none;
}

.help-hero .container,
.help-faq .container {
  position: relative;
  max-width: 920px;
  width: 100%;
  box-sizing: border-box;
}

.help-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--help-border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--help-accent-deep);
}

.help-hero__eyebrow::before {
  content: "✿";
  font-size: 11px;
  opacity: 0.85;
}

.help-hero__title {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #3f2d30;
}

.help-hero__subtitle {
  margin: 0 0 18px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--help-muted);
}

.help-hero__lead {
  margin: 0;
  max-width: 640px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: var(--help-muted);
}

.help-faq {
  padding: 0 0 clamp(72px, 10vw, 112px);
}

.help-category {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.help-category__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 0 22px;
  max-width: 100%;
  box-sizing: border-box;
}

.help-category__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 3.2vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  color: #3f2d30;
}

.help-category__count {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 107, 134, 0.72);
  text-align: right;
  white-space: nowrap;
}

.help-accordion {
  display: grid;
  gap: 10px;
}

.help-item {
  border-radius: 20px;
  background: var(--help-card);
  border: 1px solid var(--help-border);
  box-shadow: var(--help-shadow);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.help-item:not(.is-open):hover {
  border-color: rgba(217, 130, 155, 0.28);
  box-shadow: 0 20px 50px rgba(120, 74, 74, 0.07);
}

.help-item.is-open {
  border-color: rgba(217, 130, 155, 0.34);
  box-shadow: 0 22px 54px rgba(120, 74, 74, 0.08);
}

.help-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 20px;
}

.help-item__trigger:focus {
  outline: none;
}

.help-item__trigger:focus-visible {
  outline: 2px solid rgba(217, 130, 155, 0.55);
  outline-offset: 2px;
}

.help-item__question {
  flex: 1;
  min-width: 0;
  font-size: clamp(15px, 1.5vw, 16px);
  font-weight: 600;
  line-height: 1.45;
  color: #3f2d30;
  overflow-wrap: anywhere;
}

.help-item__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--help-bg-soft);
  color: var(--help-accent-deep);
  transition: transform 0.25s ease, background 0.2s ease;
}

.help-item__icon svg {
  width: 16px;
  height: 16px;
}

.help-item.is-open .help-item__icon {
  transform: rotate(45deg);
  background: rgba(217, 130, 155, 0.14);
}

.help-item__trigger:hover .help-item__icon,
.help-item__trigger:focus-visible .help-item__icon {
  background: rgba(217, 130, 155, 0.12);
}

.help-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.help-item.is-open .help-item__panel {
  grid-template-rows: 1fr;
}

.help-item__panel-inner {
  overflow: hidden;
}

.help-item__answer {
  margin: 0;
  padding: 0 22px 22px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--help-muted);
}

.help-item__answer a {
  color: var(--help-accent-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 107, 134, 0.28);
}

.help-item__answer a:hover {
  color: var(--help-accent);
}

.help-category--contact {
  margin-bottom: 0;
}

.help-contact-card {
  margin-top: 8px;
  padding: clamp(24px, 4vw, 32px);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 248, 250, 0.96) 0%, rgba(255, 236, 241, 0.92) 100%);
  border: 1px solid rgba(217, 130, 155, 0.24);
  box-shadow: var(--help-shadow);
  text-align: center;
}

.help-contact-card h2 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 600;
  color: #3f2d30;
}

.help-contact-card p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--help-muted);
}

.help-contact-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.help-contact-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--help-border);
  color: #3f2d30;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.help-contact-card__links a:hover {
  border-color: rgba(217, 130, 155, 0.42);
  transform: translateY(-1px);
}

.help-contact-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d9829b 0%, #c86b86 100%);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(200, 107, 134, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-contact-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(200, 107, 134, 0.28);
}

.help-contact-card__cta:focus {
  outline: none;
}

.help-contact-card__cta:focus-visible {
  outline: 2px solid rgba(217, 130, 155, 0.55);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  body[data-page="help"] .header .container {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto !important;
    gap: 8px 12px !important;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 56px;
    align-items: center;
  }

  body[data-page="help"] .header__left {
    min-width: 0;
    max-width: none;
    width: auto;
    flex: 1 1 auto;
    gap: 6px;
    overflow: hidden;
  }

  body[data-page="help"] .header .logo.merary-brand {
    width: auto;
    min-height: 0;
    max-width: none;
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
  }

  body[data-page="help"] .header .merary-brand__mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  body[data-page="help"] .header .merary-brand__mark-img {
    width: 36px;
    height: 36px;
  }

  body[data-page="help"] .header .merary-brand__name {
    font-size: 18px;
    line-height: 1.05;
  }

  body[data-page="help"] .header .merary-brand__sub {
    font-size: 9px;
    letter-spacing: 0.22em;
    margin-top: 2px;
  }

  body[data-page="help"] .header__center,
  body[data-page="help"] .header .nav {
    display: none !important;
  }

  body[data-page="help"] .header__actions {
    gap: 6px !important;
    flex-shrink: 0;
    align-items: center;
  }

  body[data-page="help"] .header__icon:not([href*="checkout"]) {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  body[data-page="help"] .city-select {
    flex-shrink: 1;
    min-width: 0;
    max-width: 84px;
  }

  body[data-page="help"] .city-select__btn {
    max-width: 100%;
    padding: 5px 8px;
    font-size: 10px;
    gap: 4px;
  }

  body[data-page="help"] .city-select__btn strong {
    max-width: 5ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="help"] .city-select__chevron {
    flex-shrink: 0;
  }

  body[data-page="help"] .container {
    max-width: 100%;
    box-sizing: border-box;
  }

  .help-hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .help-hero__title {
    font-size: 34px;
    line-height: 1.06;
    max-width: 100%;
  }

  .help-hero__subtitle {
    font-size: 16px;
    line-height: 1.5;
    max-width: 100%;
  }

  .help-hero__lead {
    font-size: 14px;
    line-height: 1.65;
    max-width: 100%;
  }

  .help-faq {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .help-item,
  .help-contact-card {
    max-width: 100%;
  }

  .help-item__trigger {
    padding: 16px 14px;
    gap: 12px;
  }

  .help-item__answer {
    padding: 0 14px 16px;
    font-size: 14px;
  }

  .help-category__head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 0 14px;
  }

  .help-category__count {
    margin-left: auto;
    text-align: right;
  }

  .help-contact-card__links a,
  .help-contact-card__cta {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 340px) {
  body[data-page="help"] .header .merary-brand__name {
    font-size: 16px;
  }

  body[data-page="help"] .header .merary-brand__sub {
    letter-spacing: 0.16em;
  }
}
